#pragma once
#include "Connection.h"
#ifndef _CENTER_SERVER_H_
#define _CENTER_SERVER_H_
class CFightServer : public CConnection
{
protected:
	virtual void RegisteMessage();
	virtual xgc_lpvoid OnAccept( net::network_t h, xgc_long_ptr from );
	virtual void OnClose( xgc_lpvoid userdata );

public:
	xgc_void StartServer( xgc_lpcstr address, xgc_uint16 port, xgc_uint16 test_invent, xgc_uint16 timeout );
	xgc_void StopServer();

private:
	xgc_long_ptr mServer;
};
#endif